<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link href="../css/docs.css" type="text/css" rel="stylesheet"/>
<link href="../css/prettify.css" type="text/css" rel="stylesheet"/>
<script src="../js/prettify.js" type="text/javascript"></script>
</head>
<body onLoad="prettyPrint()">
<div class="g-unit" id="doc-content">
  <div id="api-info-block">
    <div class="api-level">H3C CAS云管理平台</div>
  </div>
  <div id="jd-header">
    <h1>修改主机DPDK配置信息</h1>
  </div>
  <div id="jd-content">
    <div class="jd-descr">
      <p>根据主机id修改DPDK配置信息。</p>

      <h2><a name="uri"></a>接口 URI</h2>
      <p>/cas/casrs/host/{id}/dpdkConfig</p>

      <h2><a name="access"></a>访问方法</h2>
      <dl>
        <dt><b>HTTP 方法</b></dt>
        <dd>PUT</dd>
		<dt><b>消息体</b></dt>
  <div class="source">
    <pre class="prettyprint lang-xml">&lt;dpdkConfig&gt;<br>    &lt;status&gt;true&lt;/status&gt;<br>    &lt;numaNodeInfo&gt;<br>        &lt;numaNode&gt;1&lt;/numaNode&gt;<br>        &lt;bindCpu&gt;18&lt;/bindCpu&gt;<br>        &lt;bindCpu&gt;33&lt;/bindCpu&gt;<br>        &lt;bindMem&gt;3072&lt;/bindMem&gt;<br>    &lt;/numaNodeInfo&gt;<br>    &lt;numaNodeInfo&gt;<br>        &lt;numaNode&gt;0&lt;/numaNode&gt;<br>        &lt;bindCpu&gt;6&lt;/bindCpu&gt;<br>        &lt;bindCpu&gt;21&lt;/bindCpu&gt;<br>        &lt;bindCpu&gt;22&lt;/bindCpu&gt;<br>        &lt;bindMem&gt;2048&lt;/bindMem&gt;<br>    &lt;/numaNodeInfo&gt;<br>&lt;/dpdkConfig&gt;</pre>
  </div>
        <dt><b>参数</b></dt>
        <table id="pubmethods" class="jd-sumtable"><tbody><tr>
          <th colspan="2">路径参数（Path Parameter）</th>
        </tr>
            <tr >
              <td class="jd-typecol"><span class="prettyprint lang-xml">id</span></td>
              <td class="jd-linkcol"><span class="sympad">主机id 。</span>
                  <div class="jd-descrdiv">长整数（long）类型。必须。</div></td>
            </tr>
        </table>
      </dl>
<dl>
  <dt><a name="detail"></a><b>元素含义</b></dt>
</dl>
<table id="pubmethods" class="jd-sumtable"><tbody><tr>
          <th colspan="2">各子元素</th>
		<tr>
	          <td class="jd-typecol"><span class="prettyprint lang-xml">status</span></td>
	          <td class="jd-linkcol" width="100%">
	            <span class="sympad">DPDK状态。true：启用，false：未启用</span>
	            <div class="jd-descrdiv">布尔（Boolean)类型。</div>	          </td>
          </tr>       
			<tr class="alt-color">
	          <td class="jd-typecol"><span class="prettyprint lang-xml">numaNodeInfo</span></td>
	          <td class="jd-linkcol" width="100%">
	            <span class="sympad">主机每个NUMA节点配置信息。</span>
	            <div class="jd-descrdiv">自定义类型。</div>	          </td>
	        </tr>     
					<tr>
	          <td class="jd-typecol"><span class="prettyprint lang-xml">numaNode</span></td>
	          <td class="jd-linkcol" width="100%">
	            <span class="sympad">NUMA节点号。</span>
	            <div class="jd-descrdiv">整型（int)类型。</div>	          </td>
	        </tr>         
					<tr class="alt-color">
	          <td class="jd-typecol"><span class="prettyprint lang-xml">bindCpu</span></td>
	          <td class="jd-linkcol" width="100%">
	            <span class="sympad">NUMA节点中设置了绑定的CPU号。</span>
	            <div class="jd-descrdiv">整型（int)类型。</div>	          </td>
	        </tr>   
					<tr>
	          <td class="jd-typecol"><span class="prettyprint lang-xml">bindMem</span></td>
	          <td class="jd-linkcol" width="100%">
	            <span class="sympad">NUMA节点绑定的内存大小，单位MB。</span>
	            <div class="jd-descrdiv">整型（int)类型。</div>	          </td>
	        </tr>       
      </table>
      <h2><a name="result"></a>返回结果</h2>
      <dl>
      	<dt><b>状态码</b></dt>
    		<dd><ul>
    			<li>204(No Content)：成功。</li>
    		</ul></dd>
	    <h2><a name="example"></a>应用举例</h2>
      </dl>
      

      <p>修改主机id为6的主机DPDK配置信息。</p>
      <dl>
      	<dt><b>请求</b></dt>
        <div class="source">
          <pre class="prettyprint lang-xml">
PUT http://localhost:8080/cas/casrs/host/6/dpdkConfig
accept: application/xml
...       
 &lt;dpdkConfig&gt;<br>    &lt;status&gt;true&lt;/status&gt;<br>    &lt;numaNodeInfo&gt;<br>        &lt;numaNode&gt;1&lt;/numaNode&gt;<br>        &lt;bindCpu&gt;18&lt;/bindCpu&gt;<br>        &lt;bindCpu&gt;33&lt;/bindCpu&gt;<br>        &lt;bindMem&gt;3072&lt;/bindMem&gt;<br>    &lt;/numaNodeInfo&gt;<br>    &lt;numaNodeInfo&gt;<br>        &lt;numaNode&gt;0&lt;/numaNode&gt;<br>        &lt;bindCpu&gt;6&lt;/bindCpu&gt;<br>        &lt;bindCpu&gt;21&lt;/bindCpu&gt;<br>        &lt;bindCpu&gt;22&lt;/bindCpu&gt;<br>        &lt;bindMem&gt;2048&lt;/bindMem&gt;<br>    &lt;/numaNodeInfo&gt;<br>&lt;/dpdkConfig&gt;</pre>
        </div>
      	<dt><b>回应</b></dt>
        <div class="source">
          <pre class="prettyprint lang-xml">
HTTP/1.1 204 No Content<br></pre>
        </div>
      </dl>
  </div>
  </div>
</div>
</body>
</html>